package com.nmsl.sn.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nmsl.sn.mapper.SnRegistrationManagementMapper;
import com.nmsl.sn.domain.SnRegistrationManagement;
import com.nmsl.sn.service.ISnRegistrationManagementService;

/**
 * 工作台Service业务层处理
 * 
 * @author sn
 * @date 2025-02-14
 */
@Service
public class SnRegistrationManagementServiceImpl implements ISnRegistrationManagementService
{
    @Autowired
    private SnRegistrationManagementMapper registrationManagementMapper;

    /**
     * 查询工作台
     * 
     * @param registrationId 工作台主键
     * @return 工作台
     */
    @Override
    public SnRegistrationManagement selectRegistrationManagementByRegistrationId(Long registrationId)
    {
        return registrationManagementMapper.selectRegistrationManagementByRegistrationId(registrationId);
    }

    /**
     * 查询工作台列表
     * 
     * @param registrationManagement 工作台
     * @return 工作台
     */
    @Override
    public List<SnRegistrationManagement> selectRegistrationManagementList(SnRegistrationManagement registrationManagement)
    {
        return registrationManagementMapper.selectRegistrationManagementList(registrationManagement);
    }

    /**
     * 新增工作台
     * 
     * @param registrationManagement 工作台
     * @return 结果
     */
    @Override
    public int insertRegistrationManagement(SnRegistrationManagement registrationManagement)
    {
        return registrationManagementMapper.insertRegistrationManagement(registrationManagement);
    }

    /**
     * 修改工作台
     * 
     * @param registrationManagement 工作台
     * @return 结果
     */
    @Override
    public int updateRegistrationManagement(SnRegistrationManagement registrationManagement)
    {
        return registrationManagementMapper.updateRegistrationManagement(registrationManagement);
    }

    /**
     * 批量删除工作台
     * 
     * @param registrationIds 需要删除的工作台主键
     * @return 结果
     */
    @Override
    public int deleteRegistrationManagementByRegistrationIds(Long[] registrationIds)
    {
        return registrationManagementMapper.deleteRegistrationManagementByRegistrationIds(registrationIds);
    }

    /**
     * 删除工作台信息
     * 
     * @param registrationId 工作台主键
     * @return 结果
     */
    @Override
    public int deleteRegistrationManagementByRegistrationId(Long registrationId)
    {
        return registrationManagementMapper.deleteRegistrationManagementByRegistrationId(registrationId);
    }

    @Override
    public List<SnRegistrationManagement> getRegistrationManagementList() {
        return registrationManagementMapper.getRegistrationManagementList();
    }
}
